<!DOCTYPE html>
<html>
<head>
    <title>{% block title %}首页{% endblock %}</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='bootstrap.min_v5.css') }}">
    <link rel="icon" href="{{ url_for('static', filename='favicon.ico') }}" type="image/png">
    <script src="{{ url_for('static', filename='bootstrap.bundle.min.js') }}"></script>
</head>
<body>
<nav class="navbar navbar-expand-lg bg-primary" data-bs-theme="dark">
    <div class="container-fluid">
        <a class="navbar-brand" href="#">消息服务测试工具</a>
        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent"
                aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarSupportedContent">
            <ul class="navbar-nav me-auto mb-2 mb-lg-0">
                <li class="nav-item">
                    <a class="nav-link {% if active_page == 'home' %}active{% endif %}" href="/">Home</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link {% if active_page == 'message_send' %}active{% endif %}"
                       href="/channel">渠道消息</a>
                </li>
                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown"
                       aria-expanded="false">
                        场景消息
                    </a>
                    <ul class="dropdown-menu">
                        <li><a class="dropdown-item" href="/scene?type=1">只发APP</a></li>
                        <li><a class="dropdown-item" href="/scene?type=2">正常保存</a></li>
                    </ul>
                </li>
                <li class="nav-item">
                    <a class="nav-link {% if active_page == 'pending_send' %}active{% endif %}"
                       href="/pending">待办消息</a>
                </li>
            </ul>
            <ul class="navbar-nav ms-auto">
                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown"
                       aria-expanded="false">
                        系统管理员
                    </a>
                    <ul class="dropdown-menu">
                        <li><a class="dropdown-item" href="#">个人设置</a></li>
                        <li>
                            <hr class="dropdown-divider">
                        </li>
                        <li><a class="dropdown-item" href="#">退出登录</a></li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
</nav>
<div style="padding: 5px">
    {% block content %}{% endblock %}</div>
</body>
</html>